package com.baiyun.service.impl;


import com.baiyun.mapper.RegisterMapper;
import com.baiyun.service.RegisterService;
import lombok.RequiredArgsConstructor;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class RegisterServiceImpl implements RegisterService {

    private final RegisterMapper registerMapper;

    /**
     * 注册
     * @param username
     * @param password
     * @param type
     * @param telephone
     */
    @Override
    public void register(@Param("username") String username,
                         @Param("password") String password,
                         @Param("type") String type,
                         @Param("telephone") String telephone) {
        registerMapper.register(username, password, type, telephone);
    }
}
